const {
	Controller
} = require('uni-cloud-router')

module.exports = class TeachingClassController extends Controller {
	
	// 搜索课程
	async searchCourse(){
		return this.service.teachingClass.searchCourse()
	}
	
	// 搜索教师 
	async searchTeacher(){
		return this.service.teachingClass.searchTeacher()
	}
	
	// 搜索空闲课室
	async searchRoom(){
		const {day , node , classroom} = this.ctx.data
		return this.service.teachingClass.searchRoom(day , node , classroom)
	}
	
}